import { getQuestionList } from "../../../api.js"
Page({
  data: {

  },
  onLoad: function (options) {
    this.init()
  },
  // 初始化 获取常见问题列表
  init() {
    let businessId = getApp().globalData.Store.business.id
    getQuestionList(businessId).then(res => {
      if (res.data.code === 666) {
        this.setData({
          questionList: res.data.data.data
        })
      } else {
        wx.showToast({
          title: res.data.msg,
          icon: "none"
        })
      }
    })
  },
  onShow() {
    getApp().startpage(new Date().getTime())
  },
  onHide() {
    getApp().endpage(new Date().getTime())
  }
})